package com.humh.library.model;



// 通知系统类
public class NotificationSystem {

  /**
   *  发送到期提醒通知
   * @param reader
   * @param loanRecord
   */
  public void sendDueReminder(Reader reader, LoanRecord loanRecord) {
    System.out.println("Reminder: " + reader.getName() + ", your book " + loanRecord.getBook().getTitle() + " is due on " + loanRecord.getReturnDate());
  }

  /**
   *  发送预订须知通知
   * @param reader
   * @param book
   */
  public void sendReservationNotice(Reader reader, Book book) {
    System.out.println("Notification: " + reader.getName() + ", your reservation for " + book.getTitle() + " is successful.");
  }
}